package com.taotao.order.feign;


import com.taotao.common.pojo.TaotaoResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by zhang_xming on 2017/2/13.
 */
@FeignClient(name = "taotao-sso")
@Component
public interface UserFeignClient {
    /**
     * 通过Id查找实体
     * @param token
     * * @return
     */
    @RequestMapping(value="/user/token1/{token}", method=RequestMethod.GET)
    public TaotaoResult getUserByToken1(@RequestParam("token") String token);
}
